<%@ Page Language="C#" Debug="true" %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.IO" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Data.Common" %>
<%@ import Namespace="System.Xml" %>
<%@ import Namespace="System.Xml.XPath" %>

<script runat="server">
void Page_Load() {
    // Set content type
    Request.ContentType = "text/xml";

    // Read xml stream into a dataset
    DataSet ds = new DataSet();
    ds.ReadXml(Request.InputStream, XmlReadMode.Auto);
    String dsXMLStr = ds.GetXml();

    Session["ListSearchString"] = dsXMLStr;
    Session["ListSearchIncludeDisabled"] = ds.Tables[0].Rows[0].ItemArray[1];
    if (ds.Tables[0].Rows[0].ItemArray.Length > 2)
    { 
        // special case for including assets with combo search
        Session["ComboListSearchIncludeDisabled"] = ds.Tables[0].Rows[0].ItemArray[2];
    }
}
</script>
